Skip to content

Use Wechaty 2 and Puppet Neo for the starter - #326

Merged
huan merged 1 commit into
mainfrom
cursor/wechaty-2-puppet-neo-3c26
Nov 23, 2026
Merged

huan merged 1 commit into
mainfrom
cursor/wechaty-2-puppet-neo-3c26

Conversation

@huan

@huan huan commented Nov 23, 2026

Copy link
Copy Markdown
Member

I'm submitting a...

[ ] Bug Fix
[x] Feature
[ ] Other (Refactoring, Added tests, Documentation, ...)

Checklist

  • Commit Messages follow the Conventional Commits pattern
    • A feature commit message is prefixed "feat:"
    • A bugfix commit message is prefixed "fix:"
  • Tests for the changes have been added

Description

The getting started repo now tracks Wechaty 2 and uses wechaty-puppet-neo as its only direct puppet.

  • engines and postinstall require Node.js >=26 and npm >=10. TypeScript is ^7.0.2, including the overrides pin.
  • wechaty is >=2.0.0-0 <3, so install takes the newest 2.x. Today that is 2.0.0-alpha.18. Neo is ^0.1.1.
  • examples/ding-dong-bot.ts and examples/basic/ding-dong-bot.js keep WechatyBuilder and pass puppet: new PuppetNeo(). npm start runs the TypeScript bot on Node directly.
  • Direct dependencies removed: wechaty-puppet-oicq, walnut, wechat, wechat4u, whatsapp, and wechaty-cqrs. The walnut, service, web, PadLocal, and WhatsApp start scripts are gone. wechaty-puppet-mock stays at ^1.19.4 for the mock smoke test. wechaty-plugin-contrib stays.
  • wechaty-puppet-service and wechaty-puppet-wechat4u are still inside the Wechaty 2 package. This repo does not depend on them directly, and they are not removed from under Wechaty.
  • Gitpod is removed. So are examples/third-parties/codesandbox, maodou, xiaoli, and examples/professional/chatgpt-bot. The rest of the example gallery stays, marked as v1-era samples. The Google Cloud Shell tutorial now uses Node 26 and Neo. The devcontainer is unchanged.
  • CI runs on Node 26 for Ubuntu x64, macOS (Apple Silicon via macos-latest), and Windows x64. Smoke tests are the mock puppet and a Neo test that starts the bot, waits for scan, and stops. A live ding / dong reply still needs a phone.

TypeScript 7 rejects @chatie/tsconfig (importsNotUsedAsValues, moduleResolution: node). The repo tsconfig now states those options in TypeScript 7 form (verbatimModuleSyntax, nodenext). @typescript-eslint/parser cannot load against the TypeScript 7 compiler API, so npm test typechecks with tsc --noEmit and then runs the smoke tests.

Does this PR introduce a breaking change?

[x] Yes
[ ] No

Node.js 16 and the previous puppet start scripts no longer work. Use Node.js 26 and npm start.

Open in Web Open in Cursor 

Require Node.js 26 and TypeScript 7. Build the ding-dong bot with
WechatyBuilder and Puppet Neo, keep the mock puppet for tests, and
remove Gitpod plus the PadLocal, CodeSandbox, Maodou, Xiaoli, and
ChatGPT samples.

Co-authored-by: Huan Li <huan@chatie.io>
@cursor

cursor Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

PR Summary

Medium Risk
Breaking upgrade (Node 16 and multi-puppet workflows removed) plus native Neo addons and new CI smoke behavior on three OSes; changes are mostly starter/docs/tooling rather than production app logic.

Reviewed by Cursor Bugbot for commit 4e48371. Bugbot is set up for automated code reviews on this repo. Configure here.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T07:48:14.731285Z 4e48371 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@huan
huan merged commit e861d5e into main Nov 23, 2026
5 checks passed
@huan
huan deleted the cursor/wechaty-2-puppet-neo-3c26 branch November 23, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants